<?php

use yii\db\Migration;

/**
 * Handles the creation of table `article_status`.
 */
class m170408_070802_create_article_status_table extends Migration
{
    /**
     * @inheritdoc
     */
    public function up()
    {
        $this->createTable('article_status', [
            'id' => $this->primaryKey()->comment("状态ID"),
            'name'=>$this->string()->comment('状态名称'),
            'position'=>$this->integer()->comment('')
        ]);
    }

    /**
     * @inheritdoc
     */
    public function down()
    {
        $this->dropTable('article_status');
    }
}
